using UnityEngine;

public class OutLogAgent : UFrame.AgentContext<OutLogAgent>,UFrame.IRegistAble
{
    private UFrame.Log.LogController m_logCtrl;

    public void OnRegist()
    {
        m_logCtrl = new UFrame.Log.LogController();
        m_logCtrl.StartThread(Application.persistentDataPath, "outlog_{0}.txt");
        Debug.Log("out log start:" + m_logCtrl.LogFilePath);
    }

    public void OnUnRegist()
    {
        Debug.Log("out log release!");
        m_logCtrl.Release();
    }
}
